﻿import http from "@/utils/http";

const CustOrderService = {
	/**
	 * 功能树查询
	 * @param {*} params
	 * @returns
	 * @param {查询条件} condition
	 */
	async qryPendingOrderTree(condition) {

		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryPendingOrderTree`,
			params: condition,
			method: "GET",
		});
		return res;
	},

	/**
	 * 待处理功能树的订单数目查询
	 * @param {Object} condition
	 * @returns 功能树目集
	 */
	async qryPendingOrderCount(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryPendingOrderCount`,
			data: condition,
			method: "POST",
		});
		return res;
	},

	/**
	 * 订单列表查询，可过滤，分页查询
	 * @param {*} condition
	 * @returns
	 */
	async qryPendingOrderList(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryPendingOrderList`,
			// url: `https://www.fastmock.site/mock/afaaaace49ee2704dbd7d3b741d1c0b3/api${process.env.VUE_APP_CTX_ORDER_ACCEPT}/qryPendingOrderList`,
			data: condition,
			method: "POST",
		});
		return res;
	},

	/**
	 * 任务查询
	 * @param {*} condition
	 * @returns
	 */
	async qryPendingOrderTask(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/qryPendingOrderTask`,
			data: condition,
			method: "GET",
		});
		return res;
	},
	/**
	 * 待处理订单任务查询
	 * @param {*} condition
	 * @returns
	 */
	async queryCustOrderDealTask(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryPendingTask`,
			// url: "http://192.168.1.71:8085/order/query/qryPendingTask",
			data: condition,
			method: "GET",
		});
		return res;
	},
	/**
	 * 待处理需求单送审
	 * @param {*} condition
	 * @returns
	 */
	async sendAuditDemandOrder(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/sendAuditDemandOrder`,
			// url: "http://192.168.1.71:8083/order/accept/sendAuditDemandOrder",
			data: condition,
			method: "GET",
		});
		return res;
	},
	/**
	 * 待处理订单送审
	 * @param {*} condition
	 * @returns
	 */
	async sendAuditOrder(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/sendAuditOrder`,
			// url: "http://192.168.1.211:8083/order/process/sendAuditOrder",
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 待处理需求单审核
	 * @param {*} condition
	 * @returns
	 */
	async saveAudit(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveAudit`,
			// url: "http://192.168.1.71:8083/order/accept/saveAudit",
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 待处理转订单
	 * @param {*} condition
	 * @returns
	 */
	async handelConvertOrder(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handelConvertOrder`,
			// url: "http://localhost:8083/order-process/handelConvertOrder",
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 *
	 * @returns 工单销售品信息查询
	 */
	async qryOrderItem(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItem`,
			data: condition,
			method: "GET",
		});
		return res;
	},

	/**
	 *
	 * @returns 工单销售品信息查询
	 */
	async qryPendingOrderItemList(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryPendingOrderItemList`,
			// url: `https://www.fastmock.site/mock/afaaaace49ee2704dbd7d3b741d1c0b3/api/order/query/qryPendingOrderItemList`,
			data: condition,
			method: "POST",
		});
		return res;
	},

	/**
	 * 销售品列表待处理列表获取
	 * @param {*} condition
	 * @returns
	 */
	async queryOrderItemDealTask(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/queryOrderItemDealTask`,
			// url:'http://192.168.1.71:8085/order/query/queryOrderItemDealTask',
			// url:'https://www.fastmock.site/mock/afaaaace49ee2704dbd7d3b741d1c0b3/api/order/query/queryOrderItemDealTask',
			data: condition,
			method: "GET",
		});
		return res;
	},
	/**
	 * 资费核实保存服务
	 * @param {*} condition
	 * @returns
	 */
	async saveTariffVerification(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveTariffVerification`,
			// url: "http://192.168.1.181:8083/order/process/saveTariffVerification",
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 资源调查保存服务
	 * @param {*} condition
	 * @returns
	 */
	async saveResourceVerification(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveResourceVerification`,
			// url: `http://127.0.0.1:8083/order-process/saveResourceVerification`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 起租保存服务
	 * @param {*} condition
	 * @returns
	 */
	async saveConfirmRent(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveConfirmRent`,
			// url: "http://192.1.218.96:8083/order/process/saveConfirmRent",
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 全程报竣，填报竣工保存服务
	 * @param {*} condition
	 * @returns
	 */
	async saveCompletion(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveCompletion`,
			// url: 'http://192.168.43.104:8083/order/accept/saveCompletion',
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 待处理订单审核
	 * @param {*} condition
	 * @returns
	 */
	async saveAuditOrder(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveAuditOrder`,
			// url: "http://192.168.1.211:8083/order/process/saveAuditOrder",
			data: condition,
			method: "POST",
		});
		return res;
	},

	/**
	 * 审核人列表
	 * @returns
	 */
	async gryDemandAudUserList(condition) {
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/gryDemandAudUserList`,
			// url: "http://172.16.1.230:8000/order/query/gryDemandAudUserList",
			data: condition,
			method: "GET",
		});
		return res;
	},
	/**
	 * 查询客户订单详情
	 * @returns
	 */
	async qryCustomerOrderDetail(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryCustomerOrderDetail`,
			data: condition,
			method: "POST",
		});
		return res;
	},

	/**
	 * 得到待运行的任务
	 * @param  params
	 */
    async validateOrderItem(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/validateOrderItem`,
            data: params,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 查询操作按钮列表
	 * @param {*} params
	 */
	async queryOrderManager(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/orderManager`,
            data: params,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 业务接单
	 * @param {} condition
	 */
	async saveOrderTask(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveTask`,
			// url: `http://localhost:8083/order-accept/saveTask`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 删除订单项（销售品）
	 * @param {*} condition
	 */
	async delProdOffer(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/delProdOffer`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 *删除客户订单（项目）
	 * @param {*} condition
	 */
	async deleteCustOrder(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/deleteCustOrder`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 删除订单处理:新建项目-物理删除
	 * @param {*} condition
	 */
	async delOrder(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/delOrder`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 重新填报决算金额
	 * @param {*} condition
	 */
	async updateReFillBalance(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/reFillBalance`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 退单审核
	 * @param {} condition
	 * @returns
	 */
	async dealAuditBackOrder(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/dealAuditBackOrder`,
			// url: `http://127.0.0.1:8083/order-accept/dealAuditBackOrder`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	async dealAuditBackOrderOtn(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/dealAuditBackOrderOtn`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 重新填报决算金额校验
	 * @param {} condition
	 */
	async checkHasCreateBalance(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/checkHasCreateBalance`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 一次性修改单位校验
	 */
	async checkChargeOrg(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/checkChargeOrg`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 修改单位
	 * @param {} condition
	 */
	async chargeUpdate(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/chargeUpdate`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 得到serviceOfferId 传 custSoNumber
	 */
	async getServiceOfferId(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getServiceOfferId`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**得到orgName */
	async getOrgName(condition){
		let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getOrgName`,
            data: condition,
            method: 'POST'
        });
        return res;
	},
	/**
	 * 生成报价单接口
	 * @returns
	 */
	async saveGenerateQuotation(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveGenerateQuotation`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 生成预收费单
	 * @returns
	 */
	async saveGenerateBill(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveGenerateBill`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 查看报价单列表
	 * @returns
	 */
	async qryGenerateQuotationList(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryGenerateQuotationList`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 报价单详情
	 * @returns
	 */
	async qryGenerateQuotationDetail(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryGenerateQuotationDetail`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option初始值
	 * @param {查询条件} param
	 */
	async getExecuteSqlList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 转大写
	 * @param {查询条件} param
	 */
	async transferAmount(param) {
		let res = await http({
			// url: `http://192.1.218.191:8085/order/query/transferAmount`,
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/transferAmount`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 报价单审核人列表查询
	 * @param {查询条件} param
	 */
	async gryQuotationAudUserList(param) {
		let res = await http({
			// url: `http://192.1.218.191:8085/order/query/gryQuotationAudUserList`,
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/gryQuotationAudUserList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 报价单送审
	 * @returns
	 */
	async sendAuditGenerateQuotation(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/sendAuditGenerateQuotation`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 报价单保存
	 * @returns
	 */
	async saveAuditGenerateQuotation(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveAuditGenerateQuotation`,
			data: condition,
			method: "POST",
		});
		return res;
	},
		/**
	 * 重新报价单
	 * @returns
	 */
	async reSaveGenerateQuotation(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/reSaveGenerateQuotation`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 报价单保存更新
	 * @returns
	 */
	async commonOrderUpdate(condition) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/commonOrderUpdate`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 预收费单详情
	 * @returns
	 */
	async qryGenerateBillDetail(condition) {
		let res = await http({
			// url: `http://192.1.218.191:8085/order/query/qryGenerateBillDetail`,
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryGenerateBillDetail`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 预收费单列表查询
	 * @param {查询条件} param
	 */
	async qryGenerateBillList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryGenerateBillList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 预收费单审核人列表查询
	 * @param {查询条件} param
	 */
	async gryBillAudUserList(param) {
		let res = await http({
			// url: `http://192.1.218.191:8085/order/query/gryBillAudUserList`,
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/gryBillAudUserList`,
			data: param,
			method: 'GET'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算单审核人列表查询
	 * @param {查询条件} param
	 */
	async gryBalanceAudUserList(param) {
		let res = await http({
			// url: `http://192.1.218.191:8085/order/query/gryBillAudUserList`,
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/gryBalanceAudUserList`,
			data: param,
			method: 'GET'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 预收费单核实收费人列表查询
	 * @param {查询条件} param
	 */
	// async gryBillAudUserList(param) {
	// 	let res = await http({
	// 		// url: `http://192.1.218.191:8085/order/query/gryBillAudUserList`,
	// 		url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/gryBillAudUserList`,
	// 		data: param,
	// 		method: 'GET'
	// 	});
	// 	return res;
	// },
	/**
	 * 收费单送审
	 * @returns
	 */
	async sendAuditGenerateBill(condition) {
		let res = await http({
			// url: `http://192.1.218.191:8083/order/accept/sendAuditGenerateBill`,
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/sendAuditGenerateBill`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 收费单保存审核
	 * @returns
	 */
	async saveAuditGenerateBill(condition) {
		let res = await http({
			// url: `http://192.1.218.191:8083/order/accept/saveAuditGenerateBill`,
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveAuditGenerateBill`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 收费单核实资费
	 * @returns
	 */
	async verifyGenerateBill(condition) {
		let res = await http({
			// url: `http://192.1.218.191:8083/order/accept/verifyGenerateBill`,
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/verifyGenerateBill`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 填报方案列表查询接口
	 * @returns
	 */
	async qryOutboundDetail(condition) {
		let res = await http({
			// url: `http://192.1.218.113:8085/order/query/qryOutboundDetail`,
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOutboundDetail`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 添加方案保存接口
	 * @returns
	 */
	async addAbroadPropose(condition) {
		let res = await http({
			// url: `http://192.1.218.113:8083/order/accept/addAbroadPropose`,
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/addAbroadPropose`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 方案提交接口
	 * @returns
	 */
	async fillAbroadPropose(condition) {
		let res = await http({
			// url: `http://192.1.218.113:8083/order/accept/fillAbroadPropose`,
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/fillAbroadPropose`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * 确认境外方案
	 * @returns
	 */
	async confirmPropose(condition) {
		let res = await http({
			// url: `http://192.1.218.113:8083/order/accept/fillAbroadPropose`,
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/confirmPropose`,
			data: condition,
			method: "POST",
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 资源情况列表查询
	 * @param {查询条件} param
	 */
	async qryResourceVerification(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryResourceVerification`,
			// url: `http://localhost:8085/order-query/qryResourceVerification`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 资源情况列表查询
	 * @param {查询条件} param
	 */
	async qryTariffVerification(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryTariffVerification`,
			// url: `http://localhost:8085/order-query/qryTariffVerification`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算金额
	 * @param {查询条件} param
	 */
	async saveBalanceMoney(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveBalanceMoney`,
			// url: `http://localhost:8085/order-accept/saveBalanceMoney`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 输出业务通知单
	 * @param {查询条件} param
	 */
	async outputNoticeExcel(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/outputNoticeExcel`,
			// url: `http://192.1.218.154:8085/order-query/outputNoticeExcel`,
			responseType: 'blob',
			data: param,
			method: 'GET'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 输出销售品列表
	 * @param {查询条件} param
	 */
	 async exportExcelOfferList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/exportExcelOfferList`,
			responseType: 'blob',
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 获取流程图flowid
	 * @param {查询条件} param
	 */
	async getFlowInst(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getFlowInst`,
			// url: `http://192.1.218.113:8085/order/query/getFlowInst`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 审核记录
	 * @param {查询条件} param
	 */
	async qryAuditDemandOrder(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryAuditDemandOrder`,
			// url: `http://localhost:8085/order-query/qryAuditDemandOrder`,
			data: param,
			method: 'POST'
		});
		return res;
	},

	/**
	 *一口价申请
	 */
	async saveOrderItemAttr(param) {
		let res = await http({
			//url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/priceApply`,
			url: `http://localhost:8083/order/accept/priceApply`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 *一口价审核
	 */
	async priceReviewed(param) {
		let res = await http({
			//url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/priceReviewed`,
			url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 变更日志
	 * @param {查询条件} param
	 */
	async qryOrderItemModifyList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemModifyList`,
			// url: `http://localhost:8085/order-query/qryOrderItemModifyList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 变更日志详细
	 * @param {查询条件} param
	 */
	async qryOrderItemAttrModifyList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemAttrModifyList`,
			// url: `http://localhost:8085/order-query/qryOrderItemAttrModifyList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 导入模板查询
	 * @param {*} param
	 */
	async qryOrderItemExcelTemple(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemExcelTemple`,
			// url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 生成决算
	 * @param {查询条件} param
	 */
	async callBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/callBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
		/**
	 * @param {*} params
	 * @returns
	 * option 重新决算
	 * @param {查询条件} param
	 */
	async reBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/reBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 送审核决算
	 * @param {查询条件} param
	 */
	async sendAudBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/sendAudBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 审核决算
	 * @param {查询条件} param
	 */
	async audBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/audBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算单列表
	 * @param {查询条件} param
	 */
	async qryFinalAccountList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryFinalAccountList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算单详情
	 * @param {查询条件} param
	 */
	async qryFinalAccountDetails(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryFinalAccountDetails`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 电路预警信息
	 * @param {*} param
	 */
	async qrySolutionWarningInfoList (param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qrySolutionWarningInfoList`,
			// url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 超时竣工电路原因
	 * @param {*} param
	 */
	async qryReportWarningInfoList (param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryReportWarningInfoList`,
			// url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 模板下载
	 * @param {*} param
	 */
	async downOrderItemExcelTemple(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/downOrderItemExcelTemple`,
			// url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			headers: {'Content-Type': 'application/json'},
			responseType: 'blob',
			method: 'POST'
		});
		return res;
	},
	/**
	 * 退单日志查询
	 * @param {} param
	 */
	async qryCustWorksheetExceptionList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryCustWorksheetExceptionList`,
			// url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 上传全程报竣文件上传查询
	 * @param {*} param
	 */
	async handelSelectFile(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handelSelectFile`,
			// url: `http://localhost:8083/order/accept/priceReviewed`,
			data: param,
			method: 'POST'
		});
		return res;
	},

	/**
	 * 暂停起租
	 * @param {} param
	 */
	async pauseRent(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/pauseRent`,
			//url: `http://localhost:8083/order/accept/pauseRent`,
			data: param,
			method: 'POST'
		});
		return res;
	},

	/**
	 * 暂停起租确认
	 * @param {} param
	 */
	async pauseRentConfirm(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/pauseRentConfirm`,
			//url: `http://localhost:8083/order/accept/pauseRentConfirm`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 月租费收款单位确认 & 一次费收款单位确认
	 * @param {} param
	 */
	 async confirmCharge(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/monthRentFeeConfirm`,
			//url: `http://localhost:8083/order/accept/pauseRentConfirm`,
			data: param,
			method: 'POST'
		});
		return res;
	},

	/**
	 * A端预起租确认日志
	 * @param {} param
	 */
	 async qryOrderTaskList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderTaskList`,
			//url: `http://localhost:8083/order/accept/pauseRentConfirm`,
			data: param,
			method: 'POST'
		});
		return res;
	},

	 /**
	 * 填报资源列表
	 * @param {} param
	 */
	async loadNodeBatch(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/loadNodeBatch`,
			// url: `http://127.0.0.1:8085/order-query/loadNodeBatch`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算单列表
	 * @param {查询条件} param
	 */
	async qryFinalAccountList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryFinalAccountList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 电路竣工
	 * @param {}} param
	 * @returns
	 */
	async saveCircuitCompletion(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/saveCircuitCompletion`,
			data: param,
			method: 'POST'
		});
		return res;
	},


	/**
	 * @param {*} params
	 * @returns
	 * option 决算单详情
	 * @param {查询条件} param
	 */
	async qryFinalAccountDetails(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryFinalAccountDetails`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算单送审核保存
	 * @param {查询条件} param
	 */
	async sendAudBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/sendAudBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 决算单审核确定
	 * @param {查询条件} param
	 */
	async audBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/audBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * @param {*} params
	 * @returns
	 * option 保存决算单
	 * @param {查询条件} param
	 */
	async saveBalanceBill(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveBalanceBill`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	* @param {*} params
	* @returns
	* option 填报A端月租费
	* @param {查询条件} param
	*/
   async savePointRent(param) {
	   let res = await http({
		   url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/savePointRent`,
		//    url: `http://127.0.0.1:8083/order-process/savePointRent`,
		   data: param,
		   method: 'POST'
	   });
	   return res;
   },
   /**
	* 流程流转
	* @param {*} param
	*/
   async doWorkItem(param){
	let res = await http({
		url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/doWorkItem`,
		// url: `http://127.0.0.1:8083/order-process/doWorkItem`,
		data: param,
		method: 'POST'
	});
	return res;
   },
   /**
	* A端业务交付确认
	* @param {*} param
	* @returns
	*/
   async aBusinessDelivery(param){
	let res = await http({
		url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/aBusinessDelivery`,
		// url: `http://127.0.0.1:8083/order-process/doWorkItem`,
		data: param,
		method: 'POST'
	});
	return res;
   },
   /**
	 * 归档单查询
	 * @param {*} param
	 */
	async qryOrderItemList(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemList`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			// headers: {'Content-Type': 'application/json'},
			// responseType: 'blob',
			method: 'POST'
		});
		return res;
	},

	/**
	 * 订单列表查询
	 */
	async qryCustomerOrder(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getCustomerOrder`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	async qryProdOfferNameReqType(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryProdOfferNameReqType`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			method: 'POST'
		});
		return res;
	},

	/**
	 * 导入归档单保存服务
	 * @param {*} param
	 */
	 async saveArchiveOrder(param) {
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveArchiveOrder`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * custOrderId 入参
	 * @param {*} param
	 * @returns
	 */
    async getProdOffId(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getProdOffId`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * custSoNUmber 入参
	 * @param {*} param
	 * @returns
	 */
	async findServiceOfferId(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/findServiceOfferId`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 需求单归档
	 * @param {*} param
	 */
    async reqOrderAchive(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/reqOrderAchive`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 受理手动输入客户名创建客户接口
	 * @param {*} param
	 */
	 async qryAZCustId(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/qryAZCustId`,
			// url: `http://localhost:8083/order/query/qryOrderItemList`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 上传电子档案上传文件
	 * @param {*} param
	 */
	async handeldElecFileUpload(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handeldElecFileUpload`,
			data: param,
			method: 'POST',
			headers: { 'Content-Type': 'multipart/form-data' },
		});
		return res;
	},
	/**
	 * 上传电子文档查询列表
	 * @param {*} param
	 */
	async qryElecFileUpload(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/qryElecFileUpload`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 上传电子文档删除
	 * @param {*} param
	 */
	async delElecFile(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/delElecFile`,
			// url: `http://localhost:8084/order/process/delElecFile`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 上传电子文档下载
	 * @param {*} param
	 */
	async downloadElecFile(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/downloadElecFile`,
			data: param,
			headers: { 'Content-Type': 'application/json' },
			responseType: 'blob',
			method: 'POST'
		});
		return res;
	},
	/**
	 * 上查询单据历程
	 * @param {*} param
	 */
	async qryProdOfferInstOrderProcess(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryProdOfferInstOrderProcess`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 退回需求单
	 * @param {*} param
	 */
	 async rtnReqOrde(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/rtnReqOrde`,
			data: param,
			method: 'POST'
		});
		return res;
	},
	/**
	 * 数据转移
	 * @param {*} param 
	 * @returns 
	 */
	async moveData(param){
		let res = await http({
			url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/moveData`,
			data: param,
			method: 'POST'
		});
		return res;
	}
};
export default CustOrderService;
